import java.util.Arrays;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 123
 * Date: 2023-09-11
 * Time: 8:05
 */
public class Test {
    public static void main1(String[] args) {
        int a = 0 ;
        Scanner scan = new Scanner(System.in) ;
        a = scan.nextInt() ;
        int[] ou = new int[4] ;
        int[] ji = new int[4] ;

        for(int i = 1 , ou1 = 0 ,ji1 = 0 ; a != 0 ; i ++){
            int num = a % 2 ;
            if( i % 2 == 0 ){
                ou[ou1++] = num ;

            }else{
                ji[ji1++] = num ;
            }
            a /= 2 ;
        }
        System.out.println("奇数序列");
        System.out.println(Arrays.toString(ji) );
        System.out.println("偶数序列");
        System.out.println( Arrays.toString(ou)); ;

    }

    public static void main2(String[] args) {
        int num = 0 ;
        Scanner scan = new Scanner(System.in) ;
        num = scan.nextInt() ;
        System.out.println("奇数序列");
        for (int i = 30; i >= 0 ; i -= 2) {
            System.out.print(((num >> i) & 1) + "  ");
        }
        System.out.println();
        System.out.println("偶数序列");
        for (int i = 29; i >= 0 ; i -= 2) {
            System.out.print(((num >> i) & 1) + "  ");
        }

    }
}
